package com.dstation.service;

import com.dstation.dao.BulletChatInfoMapper;
import com.dstation.domain.BulletChatInfo;
import com.dstation.service.interf.IBulletChatService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Eastward
 * @date 2022/5/3 - 21:20
 */
@Service
public class BulletChatServiceImpl implements IBulletChatService {
    @Resource
    BulletChatInfoMapper bulletChatInfoMapper;


    @Override
    public List<BulletChatInfo> findBulletChatInfo(Long videoId) {
        return bulletChatInfoMapper.selectBulletChatInfo(videoId);
    }

    @Override
    public Boolean addBulletChatInfo(BulletChatInfo bulletChatInfo) {
        return bulletChatInfoMapper.insertBulletChatInfo(bulletChatInfo);
    }
}
